
public class c2_1{
    public static void main(String []args){
        String sno1="2015010001";
        String sno2="2015010002";
        String sname1 = "张雨欣";
        String sname2 = "刘宝利";
        int sage1=17;
        int sage2=18;
        float f1=1235.50f;
        float f2=1500.00f;
        boolean b1=false;
        boolean b2=false;
        float ave_age;
        ave_age=(sage1+sage2)/2.0f;
        float ave_f;
        ave_f=(f1+f2)/2;
        System.out.println(sname1+"的月生活花费为: "+ f1);
        System.out.println(sname2+"的月生活花费为: "+ f2);
        System.out.println("平均月生活花费为: "+ ave_f);
    }
}
